package br.edu.utfpr.md.apps;

import java.io.FileOutputStream;
import java.io.ObjectOutputStream;

import br.edu.utfpr.md.beans.Livro;

public class Serializa {
	public static void main(String[] args) throws Exception {
		Livro ooComJava = new Livro();
		ooComJava.setNome("Java com WEB");
		FileOutputStream outFile = new FileOutputStream("OOComJava.txt");
		ObjectOutputStream serializer = new ObjectOutputStream(outFile);
		serializer.writeObject(ooComJava);
	}
}
